package com.example.security1.web.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.security1.web.menu.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    // 根据用户id查询权限列表
    List<Menu> getMenuListByUserId(@Param("userId") Long userId);

    List<Menu> getMenuByUserId(@Param("userId") Long userId);
}
